﻿namespace Bioinformatics.Types
{
    public class PhylogenyNode
    {
        public static int ChildTerminator = -1;
        /// <summary>
        /// Initializes a new instance of PhylogenyNode class with default values.
        /// </summary>
        public PhylogenyNode()
        {
            LeftChild = -1;
            RightChild = -1;
            Value = string.Empty;
        }

        public int Parent { get; set; }

        /// <summary>
        /// Gets or sets the index of the left child within the current tree.
        /// </summary>
        public int LeftChild { get; set; }

        /// <summary>
        /// Gets or sets the index of the right child within the current tree.
        /// </summary>
        public int RightChild { get; set; }

        /// <summary>
        /// Gets or sets the genetic sequence of the node within the current tree.
        /// </summary>
        public string Value { get; set; }
    }
}